package com.weina.entity;


import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Employee {

  private Integer id;
  private String loginname;
  private String loginpwd;
  private String name;
  private Integer sex;
  private Integer deptId;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date hireDate;
  private String salt;
  private Integer createdBy;
  private Date createDate;
  private Integer modifyBy;
  private Date modifyDate;
  private String remark;
  private String deptname;


  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }


  public String getLoginname() {
    return loginname;
  }

  public void setLoginname(String loginname) {
    this.loginname = loginname;
  }

  public String getLoginpwd() {
    return loginpwd;
  }

  public void setLoginpwd(String loginpwd) {
    this.loginpwd = loginpwd;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public Integer getSex() {
    return sex;
  }

  public void setSex(Integer sex) {
    this.sex = sex;
  }


  public Integer getDeptId() {
    return deptId;
  }

  public void setDeptId(Integer deptId) {
    this.deptId = deptId;
  }


  public Date getHireDate() {
    return hireDate;
  }

  public void setHireDate(Date hireDate) {
    this.hireDate = hireDate;
  }


  public String getSalt() {
    return salt;
  }

  public void setSalt(String salt) {
    this.salt = salt;
  }


  public Integer getCreatedBy() {
    return createdBy;
  }

  public void setCreatedBy(Integer createdBy) {
    this.createdBy = createdBy;
  }

  public Date getCreateDate() {
    return createDate;
  }

  public void setCreateDate(Date createDate) {
    this.createDate = createDate;
  }

  public Integer getModifyBy() {
    return modifyBy;
  }

  public void setModifyBy(Integer modifyBy) {
    this.modifyBy = modifyBy;
  }

  public Date getModifyDate() {
    return modifyDate;
  }

  public void setModifyDate(Date modifyDate) {
    this.modifyDate = modifyDate;
  }

  public String getRemark() {
    return remark;
  }

  public void setRemark(String remark) {
    this.remark = remark;
  }

  public String getDeptName() {
    return deptname;
  }

  public void setDeptName(String deptname) {
    this.deptname = deptname;
  }

  public Employee() {
  }

  public Employee(Integer id, String loginname, String loginpwd, String name, Integer sex, Integer deptId, Date hireDate, String salt, Integer createdBy, Date createDate, Integer modifyBy, Date modifyDate, String remark) {
    this.id = id;
    this.loginname = loginname;
    this.loginpwd = loginpwd;
    this.name = name;
    this.sex = sex;
    this.deptId = deptId;
    this.hireDate = hireDate;
    this.salt = salt;
    this.createdBy = createdBy;
    this.createDate = createDate;
    this.modifyBy = modifyBy;
    this.modifyDate = modifyDate;
    this.remark = remark;
  }

  @Override
  public String toString() {
    return "SysEmployee{" +
            "id=" + id +
            ", loginname='" + loginname + '\'' +
            ", loginpwd='" + loginpwd + '\'' +
            ", name='" + name + '\'' +
            ", sex=" + sex +
            ", deptId=" + deptId +
            ", hireDate=" + hireDate +
            ", salt='" + salt + '\'' +
            ", createdBy=" + createdBy +
            ", createDate=" + createDate +
            ", modifyBy=" + modifyBy +
            ", modifyDate=" + modifyDate +
            ", remark='" + remark + '\'' +
            '}';
  }
}
